package com.bwie.shopcar.mapper;

import com.bwie.common.domain.Coupon;
import com.bwie.common.domain.ShopCar;
import com.bwie.common.domain.Systems;
import com.bwie.common.domain.request.ShopRequset;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopCarMapper {
    List<ShopRequset> showCars();

    Integer updateAmount(@Param("shopcarAmount") Integer shopcarAmount, @Param("shopcarId") Integer shopcarId);

    List<Coupon> downPacket(@Param("userId") Integer userId);

    Integer deleteShop(@Param("shopcarId") Integer shopcarId);

    Integer buyProduct(@Param("shopcarId") Integer shopcarId);

    List<ShopCar> findId(@Param("shopcarId") Integer shopcarId);

    void updateMoney(@Param("userMoney") Integer userMoney, @Param("userId") Integer userId);

    List<Systems> sendMessage();

    Integer addSystems(Systems systems);

    Integer giveUserCoupon(Coupon coupon);

    void deleteCoupon(@Param("couponId") Integer systemId);
}
